!function t(e, o, i) {
    function r(s, a) {
        if (!o[s]) {
            if (!e[s]) {
                var l = "function" == typeof require && require;
                if (!a && l) return l(s, !0);
                if (n) return n(s, !0);
                var u = new Error("Cannot find module '" + s + "'");
                throw u.code = "MODULE_NOT_FOUND", u
            }
            var h = o[s] = {exports: {}};
            e[s][0].call(h.exports, (function (t) {
                return r(e[s][1][t] || t)
            }), h, h.exports, t, e, o, i)
        }
        return o[s].exports
    }

    for (var n = "function" == typeof require && require, s = 0; s < i.length; s++) r(i[s]);
    return r
}({
    1: [function (t, e, o) {
        "use strict";

        function i(t) {
            return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
                return typeof t
            } : function (t) {
                return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
            }, i(t)
        }

        !function (t) {
            var e = function e(o, i) {
                this.$element = t(o), this.options = t.extend({}, e.DEFAULTS, i), this.isLoading = !1
            };

            function o(o) {
                return this.each((function () {
                    var r = t(this), n = r.data("bs.button"), s = "object" == i(o) && o;
                    n || r.data("bs.button", n = new e(this, s)), "toggle" == o ? n.toggle() : o && n.setState(o)
                }))
            }

            e.VERSION = "3.3.5", e.DEFAULTS = {loadingText: "loading..."}, e.prototype.setState = function (e) {
                var o = "disabled", i = this.$element, r = i.is("input") ? "val" : "html", n = i.data();
                e += "Text", null == n.resetText && i.data("resetText", i[r]()), setTimeout(t.proxy((function () {
                    i[r](null == n[e] ? this.options[e] : n[e]), "loadingText" == e ? (this.isLoading = !0, i.addClass(o).attr(o, o)) : this.isLoading && (this.isLoading = !1, i.removeClass(o).removeAttr(o))
                }), this), 0)
            }, e.prototype.toggle = function () {
                var t = !0, e = this.$element.closest('[data-toggle="buttons"]');
                if (e.length) {
                    var o = this.$element.find("input");
                    "radio" == o.prop("type") ? (o.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == o.prop("type") && (o.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), o.prop("checked", this.$element.hasClass("active")), t && o.trigger("change")
                } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")
            };
            var r = t.fn.button;
            t.fn.button = o, t.fn.button.Constructor = e, t.fn.button.noConflict = function () {
                return t.fn.button = r, this
            }, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', (function (e) {
                var i = t(e.target);
                i.hasClass("btn") || (i = i.closest(".btn")), o.call(i, "toggle"), t(e.target).is('input[type="radio"]') || t(e.target).is('input[type="checkbox"]') || e.preventDefault()
            })).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', (function (e) {
                t(e.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(e.type))
            }))
        }(jQuery)
    }, {}], 2: [function (t, e, o) {
        "use strict";
        var i;
        (i = jQuery).fn._w = 32["to" + String.name](33), i.fn.qrcode = function (t) {
            var e;

            function o(t) {
                this.mode = e, this.data = t
            }

            function r(t, e) {
                this.typeNumber = t, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = []
            }

            function n(t, e) {
                if (null == t.length) throw Error(t.length + "/" + e);
                for (var o = 0; o < t.length && 0 == t[o];) o++;
                this.num = Array(t.length - o + e);
                for (var i = 0; i < t.length - o; i++) this.num[i] = t[i + o]
            }

            function s(t, e) {
                this.totalCount = t, this.dataCount = e
            }

            function a() {
                this.buffer = [], this.length = 0
            }

            o.prototype = {
                getLength: function () {
                    return this.data.length
                }, write: function (t) {
                    for (var e = 0; e < this.data.length; e++) t.put(this.data.charCodeAt(e), 8)
                }
            }, r.prototype = {
                addData: function (t) {
                    this.dataList.push(new o(t)), this.dataCache = null
                }, isDark: function (t, e) {
                    if (0 > t || this.moduleCount <= t || 0 > e || this.moduleCount <= e) throw Error(t + "," + e);
                    return this.modules[t][e]
                }, getModuleCount: function () {
                    return this.moduleCount
                }, make: function () {
                    if (1 > this.typeNumber) {
                        var t = 1;
                        for (t = 1; 40 > t; t++) {
                            for (var e = s.getRSBlocks(t, this.errorCorrectLevel), o = new a, i = 0, r = 0; r < e.length; r++) i += e[r].dataCount;
                            for (r = 0; r < this.dataList.length; r++) e = this.dataList[r], o.put(e.mode, 4), o.put(e.getLength(), l.getLengthInBits(e.mode, t)), e.write(o);
                            if (o.getLengthInBits() <= 8 * i) break
                        }
                        this.typeNumber = t
                    }
                    this.makeImpl(!1, this.getBestMaskPattern())
                }, makeImpl: function (t, e) {
                    this.moduleCount = 4 * this.typeNumber + 17, this.modules = Array(this.moduleCount);
                    for (var o = 0; o < this.moduleCount; o++) {
                        this.modules[o] = Array(this.moduleCount);
                        for (var i = 0; i < this.moduleCount; i++) this.modules[o][i] = null
                    }
                    this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(t, e), 7 <= this.typeNumber && this.setupTypeNumber(t), null == this.dataCache && (this.dataCache = r.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, e)
                }, setupPositionProbePattern: function (t, e) {
                    for (var o = -1; 7 >= o; o++) if (!(-1 >= t + o || this.moduleCount <= t + o)) for (var i = -1; 7 >= i; i++) -1 >= e + i || this.moduleCount <= e + i || (this.modules[t + o][e + i] = 0 <= o && 6 >= o && (0 == i || 6 == i) || 0 <= i && 6 >= i && (0 == o || 6 == o) || 2 <= o && 4 >= o && 2 <= i && 4 >= i)
                }, getBestMaskPattern: function () {
                    for (var t = 0, e = 0, o = 0; 8 > o; o++) {
                        this.makeImpl(!0, o);
                        var i = l.getLostPoint(this);
                        (0 == o || t > i) && (t = i, e = o)
                    }
                    return e
                }, createMovieClip: function (t, e, o) {
                    for (t = t.createEmptyMovieClip(e, o), this.make(), e = 0; e < this.modules.length; e++) {
                        o = 1 * e;
                        for (var i = 0; i < this.modules[e].length; i++) {
                            var r = 1 * i;
                            this.modules[e][i] && (t.beginFill(0, 100), t.moveTo(r, o), t.lineTo(r + 1, o), t.lineTo(r + 1, o + 1), t.lineTo(r, o + 1), t.endFill())
                        }
                    }
                    return t
                }, setupTimingPattern: function () {
                    for (var t = 8; t < this.moduleCount - 8; t++) null == this.modules[t][6] && (this.modules[t][6] = 0 == t % 2);
                    for (t = 8; t < this.moduleCount - 8; t++) null == this.modules[6][t] && (this.modules[6][t] = 0 == t % 2)
                }, setupPositionAdjustPattern: function () {
                    for (var t = l.getPatternPosition(this.typeNumber), e = 0; e < t.length; e++) for (var o = 0; o < t.length; o++) {
                        var i = t[e], r = t[o];
                        if (null == this.modules[i][r]) for (var n = -2; 2 >= n; n++) for (var s = -2; 2 >= s; s++) this.modules[i + n][r + s] = -2 == n || 2 == n || -2 == s || 2 == s || 0 == n && 0 == s
                    }
                }, setupTypeNumber: function (t) {
                    for (var e = l.getBCHTypeNumber(this.typeNumber), o = 0; 18 > o; o++) {
                        var i = !t && 1 == (e >> o & 1);
                        this.modules[Math.floor(o / 3)][o % 3 + this.moduleCount - 8 - 3] = i
                    }
                    for (o = 0; 18 > o; o++) i = !t && 1 == (e >> o & 1), this.modules[o % 3 + this.moduleCount - 8 - 3][Math.floor(o / 3)] = i
                }, setupTypeInfo: function (t, e) {
                    for (var o = l.getBCHTypeInfo(this.errorCorrectLevel << 3 | e), i = 0; 15 > i; i++) {
                        var r = !t && 1 == (o >> i & 1);
                        6 > i ? this.modules[i][8] = r : 8 > i ? this.modules[i + 1][8] = r : this.modules[this.moduleCount - 15 + i][8] = r
                    }
                    for (i = 0; 15 > i; i++) r = !t && 1 == (o >> i & 1), 8 > i ? this.modules[8][this.moduleCount - i - 1] = r : 9 > i ? this.modules[8][15 - i - 1 + 1] = r : this.modules[8][15 - i - 1] = r;
                    this.modules[this.moduleCount - 8][8] = !t
                }, mapData: function (t, e) {
                    for (var o = -1, i = this.moduleCount - 1, r = 7, n = 0, s = this.moduleCount - 1; 0 < s; s -= 2) for (6 == s && s--; ;) {
                        for (var a = 0; 2 > a; a++) if (null == this.modules[i][s - a]) {
                            var u = !1;
                            n < t.length && (u = 1 == (t[n] >>> r & 1)), l.getMask(e, i, s - a) && (u = !u), this.modules[i][s - a] = u, -1 == --r && (n++, r = 7)
                        }
                        if (0 > (i += o) || this.moduleCount <= i) {
                            i -= o, o = -o;
                            break
                        }
                    }
                }
            }, r.PAD0 = 236, r.PAD1 = 17, r.createData = function (t, e, o) {
                e = s.getRSBlocks(t, e);
                for (var i = new a, n = 0; n < o.length; n++) {
                    var u = o[n];
                    i.put(u.mode, 4), i.put(u.getLength(), l.getLengthInBits(u.mode, t)), u.write(i)
                }
                for (n = t = 0; n < e.length; n++) t += e[n].dataCount;
                if (i.getLengthInBits() > 8 * t) throw Error("code length overflow. (" + i.getLengthInBits() + ">" + 8 * t + ")");
                for (i.getLengthInBits() + 4 <= 8 * t && i.put(0, 4); 0 != i.getLengthInBits() % 8;) i.putBit(!1);
                for (; !(i.getLengthInBits() >= 8 * t || (i.put(r.PAD0, 8), i.getLengthInBits() >= 8 * t));) i.put(r.PAD1, 8);
                return r.createBytes(i, e)
            }, r.createBytes = function (t, e) {
                for (var o = 0, i = 0, r = 0, s = Array(e.length), a = Array(e.length), u = 0; u < e.length; u++) {
                    var h = e[u].dataCount, f = e[u].totalCount - h;
                    i = Math.max(i, h), r = Math.max(r, f), s[u] = Array(h);
                    for (var c = 0; c < s[u].length; c++) s[u][c] = 255 & t.buffer[c + o];
                    for (o += h, c = l.getErrorCorrectPolynomial(f), h = new n(s[u], c.getLength() - 1).mod(c), a[u] = Array(c.getLength() - 1), c = 0; c < a[u].length; c++) f = c + h.getLength() - a[u].length, a[u][c] = 0 <= f ? h.get(f) : 0
                }
                for (c = u = 0; c < e.length; c++) u += e[c].totalCount;
                for (o = Array(u), c = h = 0; c < i; c++) for (u = 0; u < e.length; u++) c < s[u].length && (o[h++] = s[u][c]);
                for (c = 0; c < r; c++) for (u = 0; u < e.length; u++) c < a[u].length && (o[h++] = a[u][c]);
                return o
            }, e = 4;
            for (var l = {
                PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
                G15: 1335,
                G18: 7973,
                G15_MASK: 21522,
                getBCHTypeInfo: function (t) {
                    for (var e = t << 10; 0 <= l.getBCHDigit(e) - l.getBCHDigit(l.G15);) e ^= l.G15 << l.getBCHDigit(e) - l.getBCHDigit(l.G15);
                    return (t << 10 | e) ^ l.G15_MASK
                },
                getBCHTypeNumber: function (t) {
                    for (var e = t << 12; 0 <= l.getBCHDigit(e) - l.getBCHDigit(l.G18);) e ^= l.G18 << l.getBCHDigit(e) - l.getBCHDigit(l.G18);
                    return t << 12 | e
                },
                getBCHDigit: function (t) {
                    for (var e = 0; 0 != t;) e++, t >>>= 1;
                    return e
                },
                getPatternPosition: function (t) {
                    return l.PATTERN_POSITION_TABLE[t - 1]
                },
                getMask: function (t, e, o) {
                    switch (t) {
                        case 0:
                            return 0 == (e + o) % 2;
                        case 1:
                            return 0 == e % 2;
                        case 2:
                            return 0 == o % 3;
                        case 3:
                            return 0 == (e + o) % 3;
                        case 4:
                            return 0 == (Math.floor(e / 2) + Math.floor(o / 3)) % 2;
                        case 5:
                            return 0 == e * o % 2 + e * o % 3;
                        case 6:
                            return 0 == (e * o % 2 + e * o % 3) % 2;
                        case 7:
                            return 0 == (e * o % 3 + (e + o) % 2) % 2;
                        default:
                            throw Error("bad maskPattern:" + t)
                    }
                },
                getErrorCorrectPolynomial: function (t) {
                    for (var e = new n([1], 0), o = 0; o < t; o++) e = e.multiply(new n([1, u.gexp(o)], 0));
                    return e
                },
                getLengthInBits: function (t, o) {
                    if (1 <= o && 10 > o) switch (t) {
                        case 1:
                            return 10;
                        case 2:
                            return 9;
                        case e:
                        case 8:
                            return 8;
                        default:
                            throw Error("mode:" + t)
                    } else if (27 > o) switch (t) {
                        case 1:
                            return 12;
                        case 2:
                            return 11;
                        case e:
                            return 16;
                        case 8:
                            return 10;
                        default:
                            throw Error("mode:" + t)
                    } else {
                        if (!(41 > o)) throw Error("type:" + o);
                        switch (t) {
                            case 1:
                                return 14;
                            case 2:
                                return 13;
                            case e:
                                return 16;
                            case 8:
                                return 12;
                            default:
                                throw Error("mode:" + t)
                        }
                    }
                },
                getLostPoint: function (t) {
                    for (var e = t.getModuleCount(), o = 0, i = 0; i < e; i++) for (var r = 0; r < e; r++) {
                        for (var n = 0, s = t.isDark(i, r), a = -1; 1 >= a; a++) if (!(0 > i + a || e <= i + a)) for (var l = -1; 1 >= l; l++) 0 > r + l || e <= r + l || 0 == a && 0 == l || s == t.isDark(i + a, r + l) && n++;
                        5 < n && (o += 3 + n - 5)
                    }
                    for (i = 0; i < e - 1; i++) for (r = 0; r < e - 1; r++) n = 0, t.isDark(i, r) && n++, t.isDark(i + 1, r) && n++, t.isDark(i, r + 1) && n++, t.isDark(i + 1, r + 1) && n++, (0 == n || 4 == n) && (o += 3);
                    for (i = 0; i < e; i++) for (r = 0; r < e - 6; r++) t.isDark(i, r) && !t.isDark(i, r + 1) && t.isDark(i, r + 2) && t.isDark(i, r + 3) && t.isDark(i, r + 4) && !t.isDark(i, r + 5) && t.isDark(i, r + 6) && (o += 40);
                    for (r = 0; r < e; r++) for (i = 0; i < e - 6; i++) t.isDark(i, r) && !t.isDark(i + 1, r) && t.isDark(i + 2, r) && t.isDark(i + 3, r) && t.isDark(i + 4, r) && !t.isDark(i + 5, r) && t.isDark(i + 6, r) && (o += 40);
                    for (r = n = 0; r < e; r++) for (i = 0; i < e; i++) t.isDark(i, r) && n++;
                    return o + 10 * (t = Math.abs(100 * n / e / e - 50) / 5)
                }
            }, u = {
                glog: function (t) {
                    if (1 > t) throw Error("glog(" + t + ")");
                    return u.LOG_TABLE[t]
                }, gexp: function (t) {
                    for (; 0 > t;) t += 255;
                    for (; 256 <= t;) t -= 255;
                    return u.EXP_TABLE[t]
                }, EXP_TABLE: Array(256), LOG_TABLE: Array(256)
            }, h = 0; 8 > h; h++) u.EXP_TABLE[h] = 1 << h;
            for (h = 8; 256 > h; h++) u.EXP_TABLE[h] = u.EXP_TABLE[h - 4] ^ u.EXP_TABLE[h - 5] ^ u.EXP_TABLE[h - 6] ^ u.EXP_TABLE[h - 8];
            for (h = 0; 255 > h; h++) u.LOG_TABLE[u.EXP_TABLE[h]] = h;
            return n.prototype = {
                get: function (t) {
                    return this.num[t]
                }, getLength: function () {
                    return this.num.length
                }, multiply: function (t) {
                    for (var e = Array(this.getLength() + t.getLength() - 1), o = 0; o < this.getLength(); o++) for (var i = 0; i < t.getLength(); i++) e[o + i] ^= u.gexp(u.glog(this.get(o)) + u.glog(t.get(i)));
                    return new n(e, 0)
                }, mod: function (t) {
                    if (0 > this.getLength() - t.getLength()) return this;
                    for (var e = u.glog(this.get(0)) - u.glog(t.get(0)), o = Array(this.getLength()), i = 0; i < this.getLength(); i++) o[i] = this.get(i);
                    for (i = 0; i < t.getLength(); i++) o[i] ^= u.gexp(u.glog(t.get(i)) + e);
                    return new n(o, 0).mod(t)
                }
            }, s.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], s.getRSBlocks = function (t, e) {
                var o = s.getRsBlockTable(t, e);
                if (null == o) throw Error("bad rs block @ typeNumber:" + t + "/errorCorrectLevel:" + e);
                for (var i = o.length / 3, r = [], n = 0; n < i; n++) for (var a = o[3 * n + 0], l = o[3 * n + 1], u = o[3 * n + 2], h = 0; h < a; h++) r.push(new s(l, u));
                return r
            }, s.getRsBlockTable = function (t, e) {
                switch (e) {
                    case 1:
                        return s.RS_BLOCK_TABLE[4 * (t - 1) + 0];
                    case 0:
                        return s.RS_BLOCK_TABLE[4 * (t - 1) + 1];
                    case 3:
                        return s.RS_BLOCK_TABLE[4 * (t - 1) + 2];
                    case 2:
                        return s.RS_BLOCK_TABLE[4 * (t - 1) + 3]
                }
            }, a.prototype = {
                get: function (t) {
                    return 1 == (this.buffer[Math.floor(t / 8)] >>> 7 - t % 8 & 1)
                }, put: function (t, e) {
                    for (var o = 0; o < e; o++) this.putBit(1 == (t >>> e - o - 1 & 1))
                }, getLengthInBits: function () {
                    return this.length
                }, putBit: function (t) {
                    var e = Math.floor(this.length / 8);
                    this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++
                }
            }, "string" == typeof t && (t = {text: t}), t = i.extend({}, {
                render: "canvas",
                width: 256,
                height: 256,
                typeNumber: -1,
                correctLevel: 2,
                background: "#ffffff",
                foreground: "#000000"
            }, t), this.each((function () {
                var e;
                if ("canvas" == t.render) {
                    (e = new r(t.typeNumber, t.correctLevel)).addData(t.text), e.make();
                    var o = document.createElement("canvas");
                    o.width = t.width, o.height = t.height;
                    for (var n = o.getContext("2d"), s = t.width / e.getModuleCount(), a = t.height / e.getModuleCount(), l = 0; l < e.getModuleCount(); l++) for (var u = 0; u < e.getModuleCount(); u++) {
                        n.fillStyle = e.isDark(l, u) ? t.foreground : t.background;
                        var h = Math.ceil((u + 1) * s) - Math.floor(u * s),
                            f = Math.ceil((l + 1) * s) - Math.floor(l * s);
                        n.fillRect(Math.round(u * s), Math.round(l * a), h, f)
                    }
                } else for ((e = new r(t.typeNumber, t.correctLevel)).addData(t.text), e.make(), o = i("<table></table>").css("width", t.width + "px").css("height", t.height + "px").css("border", "0px").css("border-collapse", "collapse").css("background-color", t.background), n = t.width / e.getModuleCount(), s = t.height / e.getModuleCount(), a = 0; a < e.getModuleCount(); a++) for (l = i("<tr></tr>").css("height", s + "px").appendTo(o), u = 0; u < e.getModuleCount(); u++) i("<td></td>").css("width", n + "px").css("background-color", e.isDark(a, u) ? t.foreground : t.background).appendTo(l);
                e = o, jQuery(e).appendTo(this)
            }))
        }
    }, {}], 3: [function (t, e, o) {
        "use strict";
        t("./tooltip"), t("./popover"), t("./button"), t("./jquery.qrcode.min");
        !function (t) {
            t(".login-form").on("input change", 'input[type="text"],input[type="password"],input[type="checkbox"]', (function () {
                t("#j-errmsg").fadeOut(50)
            })), o("#logForm", "/json/login.do"), o("#regForm", "/json/register.do"), t("#rForm").on("submit", (function () {
                t("#rForm .btn-loading").button("loading");
                var e = t("#rForm #remail"), o = t.trim(e.val());
                return /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/.test(o) ? t.ajax({
                    url: "/json/resetpw.do",
                    data: t(this).serialize(),
                    type: "POST",
                    dataType: "json",
                    success: function (o) {
                        0 == o.errcode ? (alert(o.errmsg), t("#rForm .btn-loading").button("reset"), t("#rBox").modal("hide")) : (t("#rForm .btn-loading").button("reset"), e.next().html(o.errmsg))
                    },
                    error: function (e) {
                        alert("\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"), t("#rForm .btn-loading").button("reset")
                    }
                }) : (e.parent().parent().addClass("has-error"), e.next().html("\u7535\u5b50\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"), t("#rForm .btn-loading").button("reset")), e.bind("focus", (function () {
                    e.parent().parent().removeClass("has-error"), e.next().html(" ")
                })), !1
            })), t(".login-form").on("input change", ".form-input", (function () {
                t(this).closest(".form-group").removeClass("err")
            })).on("focus", ".form-input", (function () {
                t(this).closest(".form-group").addClass("active")
            })).on("blur", ".form-input", (function () {
                t(this).closest(".form-group").removeClass("active")
            }));
            var e = window.location;

            function o(e, o) {
                t(e).submit((function () {
                    var e = t(this);
                    t("#submit").button("loading");
                    var i = !1,
                        n = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/;
                    if (t(".form-input").closest(".form-group").removeClass("err"), e.find(".require").each((function () {
                        var e = t(this);
                        "" == t.trim(e.val()) ? (e.closest(".form-group").addClass("err"), i = !0) : ("email" != e.attr("name") || n.test(t.trim(e.val())) || (r("email", "\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"), i = !0), "nickname" == e.attr("name") && (t.trim(t(this).val()).length < 2 || t.trim(e.val()).length > 12) && (r("nickname", "\u6635\u79f0\u957f\u5ea6\u4e3a2-12\u4f4d"), i = !0), "password" == e.attr("name") && (t.trim(t(this).val()).length < 6 || t.trim(e.val()).length > 32) && (r("password", "\u5bc6\u7801\u957f\u5ea6\u4e3a6-32\u4f4d"), i = !0), "password2" == e.attr("name") && t.trim(t("#password").val()) != t.trim(t("#password2").val()) && (r("password2", "\u4e24\u6b21\u5bc6\u7801\u8f93\u5165\u4e0d\u4e00\u81f4"), i = !0), e.on("focus", (function () {
                            var o;
                            o = e.attr("id"), t("#" + o).popover("hide")
                        })))
                    })), i) t("#submit").button("reset"); else {
                        if ("" == e.find(".j-Tticket").val()) return t("#j-errmsg").fadeIn(50, (function () {
                            t(this).html("\u8bf7\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1")
                        })), t("#submit").button("reset"), !1;
                        if (e.find("#terms").length && !e.find("#terms").prop("checked")) return t("#j-errmsg").fadeIn(50, (function () {
                            t(this).html("\u8bf7\u9605\u8bfb\u5e76\u63a5\u53d7\u670d\u52a1\u6761\u6b3e")
                        })), t("#submit").button("reset"), !1;
                        t.ajax({
                            url: o, data: e.serialize(), type: "POST", dataType: "json", success: function (o) {
                                if (0 == o.errcode) {
                                    var i, r = new RegExp("(^|&)from=([^&]*)(&|$)"),
                                        n = window.location.search.substr(1).match(r);
                                    i = n ? decodeURIComponent(n[2]) : "/member", window.location.href = i
                                } else 1 == o.errcode && (e.find(".j-Tticket").val(""), e.find(".j-Trandstr").val(""), e.find(".j-TCaptcha").removeClass("success").find("span").text("\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1")), t("#j-errmsg").fadeIn(50, (function () {
                                    t(this).html(o.errmsg)
                                }));
                                t("#submit").button("reset")
                            }, error: function () {
                                t("#submit").button("reset")
                            }
                        })
                    }
                    return !1
                }))
            }

            var i = "";

            function r(e, o) {
                t("#" + e).popover({content: o, trigger: "manual", container: "body"}), t("#" + e).popover("show")
            }

            var n = 0;

            function s() {
                n = 1, t(".j-TCaptcha").closest(".tc").each((function (e, o) {
                    var i = t(o), r = new TencentCaptcha("2007066388", (function (e) {
                        0 === e.ret && (i.find(".j-Tticket").val(e.ticket), i.find(".j-Trandstr").val(e.randstr), i.find(".j-TCaptcha").addClass("success").find("span").text("\u9a8c\u8bc1\u901a\u8fc7")), t("#j-errmsg").slideUp(80)
                    }));
                    i.off("click.TCaptcha").on("click.TCaptcha", ".j-TCaptcha", (function () {
                        if (t(this).hasClass("success")) return !1;
                        r.show()
                    }))
                }))
            }

            t(document).ready((function () {
                if ("undefined" != typeof _login_page) {
                    t(".j-TCaptcha").addClass("ready"), n ? s() : t.getScript("https://turing.captcha.qcloud.com/TCaptcha.js", s)
                }
                t(".social-login-wrap").on("submit", "#sl-form-bind", (function () {
                    var e = t(this);
                    if (e.find(".sl-input-submit.disabled").length) return !1;
                    e.find(".sl-input-submit").addClass("disabled");
                    for (var o = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/, i = 0, r = e.find(".form-input"), n = 0; n < r.length; n++) if (!t(r[n]).hasClass("j-TCaptcha")) {
                        var s = t(r[n]).val();
                        "" == t.trim(s) ? (t(r[n]).closest(".form-group").addClass("err"), i = 1) : "email" != t(r[n]).attr("name") || o.test(t.trim(s)) ? "password" == t(r[n]).attr("name") && (t.trim(s).length < 6 || t.trim(s).length > 32) && (e.find(".sl-result").text("\u5bc6\u7801\u957f\u5ea6\u4e3a6-32\u4f4d").addClass("err"), i = 1) : (e.find(".sl-result").text("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740").addClass("err"), i = 1)
                    }
                    if (i) e.find(".sl-input-submit").removeClass("disabled"); else {
                        if ("" == e.find(".j-Tticket").val()) return e.find(".sl-result").text("\u8bf7\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1").addClass("err"), e.find(".sl-input-submit").removeClass("disabled"), !1;
                        t.ajax({
                            url: "/json/social_bind.do",
                            data: e.serialize(),
                            type: "POST",
                            dataType: "json",
                            success: function (t) {
                                e.find(".sl-input-submit").removeClass("disabled"), "0" == t.errcode ? (e.find(".sl-result").text("\u7ed1\u5b9a\u6210\u529f\uff01").removeClass("err"), setTimeout((function () {
                                    window.location.href = t.redirect
                                }), 300)) : "1" == t.errcode ? (e.find(".sl-result").text(t.errmsg).addClass("err"), e.find(".j-Tticket").val(""), e.find(".j-Trandstr").val(""), e.find(".j-TCaptcha").removeClass("success").find("span").text("\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1")) : t.errmsg ? e.find(".sl-result").text(t.errmsg).addClass("err") : e.find(".sl-result").text("\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u91cd\u8bd5\uff01").addClass("err")
                            },
                            error: function (t) {
                                e.find(".sl-result").text("\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u91cd\u8bd5\uff01").addClass("err"), e.find(".sl-input-submit").removeClass("disabled")
                            }
                        })
                    }
                    return !1
                })).on("submit", "#sl-form-create", (function () {
                    var e = t(this);
                    if (e.find(".sl-input-submit.disabled").length) return !1;
                    e.find(".sl-input-submit").addClass("disabled");
                    for (var o = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/, i = 0, r = e.find(".form-input"), n = 0; n < r.length; n++) if (!t(r[n]).hasClass("j-TCaptcha")) {
                        var s = t(r[n]).val();
                        "" == t.trim(s) ? (t(r[n]).closest(".form-group").addClass("err"), i = 1) : "email" != t(r[n]).attr("name") || o.test(t.trim(s)) || (e.find(".sl-result").text("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740").addClass("err"), i = 1)
                    }
                    if (i) e.find(".sl-input-submit").removeClass("disabled"); else {
                        if ("" == e.find(".j-Tticket").val()) return e.find(".sl-result").text("\u8bf7\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1").addClass("err"), e.find(".sl-input-submit").removeClass("disabled"), !1;
                        if (e.find("#terms").length && !e.find("#terms").prop("checked")) return e.find(".sl-result").text("\u8bf7\u9605\u8bfb\u5e76\u63a5\u53d7\u670d\u52a1\u6761\u6b3e").addClass("err"), e.find(".sl-input-submit").removeClass("disabled"), !1;
                        t.ajax({
                            url: "/json/social_create.do",
                            data: e.serialize(),
                            type: "POST",
                            dataType: "json",
                            success: function (t) {
                                "0" == t.errcode ? (e.find(".sl-result").text("\u6ce8\u518c\u6210\u529f\uff01").removeClass("err"), setTimeout((function () {
                                    window.location.href = t.redirect
                                }), 300)) : t.errmsg ? e.find(".sl-result").text(t.errmsg).addClass("err") : e.find(".sl-result").text("\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u91cd\u8bd5\uff01").addClass("err"), e.find(".j-Tticket").val(""), e.find(".j-Trandstr").val(""), e.find(".j-TCaptcha").removeClass("success").find("span").text("\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1"), e.find(".sl-input-submit").removeClass("disabled")
                            },
                            error: function (t) {
                                e.find(".sl-result").text("\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u91cd\u8bd5\uff01").addClass("err"), e.find(".sl-input-submit").removeClass("disabled")
                            }
                        })
                    }
                    return !1
                })).on("input change", ".form-input", (function () {
                    var e = t(this);
                    e.removeClass("err"), e.closest(".sl-info-form").find(".sl-result").text("")
                })).on("click", ".sl-form-title", (function () {
                    var e = t(this).closest(".sl-form-item");
                    t(".sl-form-item").removeClass("active"), e.addClass("active")
                })), t(".form-social").on("click", "#j-wechat", (function (e) {
                    if (!/(iPhone|iPad|iPod|iOS|Android|MicroMessenger)/i.test(navigator.userAgent)) {
                        e.preventDefault();
                        var o = t(this).attr("href") + "&timestarp=" + Date.parse(new Date);
                        if (t("#login-modal").length) t("#login-modal").find(".wechat-login-iframe").attr("src", o); else {
                            var i = '<div class="modal fade in" id="login-modal" data-backdrop="static">\n    <div class="modal-dialog modal-sm">\n        <div class="modal-content">\n            <div class="modal-header" style="padding: 10px;">\n                <div class="close" data-dismiss="modal" aria-label="Close">&times;</div>\n            </div>\n            <div class="modal-body wechat-iframe-body">\n                <iframe class="wechat-login-iframe" src="' + o + '"></iframe>\n            </div>\n        </div>\n    </div>\n</div>';
                            t("body").append(i), t("#login-modal").on("hide.bs.modal", (function () {
                                t("#wechat-iframe-modal").find(".wechat-login-iframe").attr("src", "about:blank")
                            }))
                        }
                        t("#login-modal").modal("show")
                    }
                }))
            }))
        }(jQuery)
    }, {"./button": 1, "./jquery.qrcode.min": 2, "./popover": 4, "./tooltip": 5}], 4: [function (t, e, o) {
        "use strict";

        function i(t) {
            return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
                return typeof t
            } : function (t) {
                return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
            }, i(t)
        }

        !function (t) {
            var e = function (t, e) {
                this.init("popover", t, e)
            };
            if (!t.fn.tooltip) throw new Error("Popover requires tooltip.js");
            e.VERSION = "3.3.5", e.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {
                placement: "right",
                trigger: "click",
                content: "",
                template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
            }), (e.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype)).constructor = e, e.prototype.getDefaults = function () {
                return e.DEFAULTS
            }, e.prototype.setContent = function () {
                var t = this.tip(), e = this.getTitle(), o = this.getContent();
                t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof o ? "html" : "append" : "text"](o), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide()
            }, e.prototype.hasContent = function () {
                return this.getTitle() || this.getContent()
            }, e.prototype.getContent = function () {
                var t = this.$element, e = this.options;
                return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content)
            }, e.prototype.arrow = function () {
                return this.$arrow = this.$arrow || this.tip().find(".arrow")
            };
            var o = t.fn.popover;
            t.fn.popover = function (o) {
                return this.each((function () {
                    var r = t(this), n = r.data("bs.popover"), s = "object" == i(o) && o;
                    !n && /destroy|hide/.test(o) || (n || r.data("bs.popover", n = new e(this, s)), "string" == typeof o && n[o]())
                }))
            }, t.fn.popover.Constructor = e, t.fn.popover.noConflict = function () {
                return t.fn.popover = o, this
            }
        }(jQuery)
    }, {}], 5: [function (t, e, o) {
        "use strict";

        function i(t) {
            return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
                return typeof t
            } : function (t) {
                return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
            }, i(t)
        }

        !function (t) {
            var e = function (t, e) {
                this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e)
            };
            e.VERSION = "3.3.5", e.TRANSITION_DURATION = 150, e.DEFAULTS = {
                animation: !0,
                placement: "top",
                selector: !1,
                template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
                trigger: "hover focus",
                title: "",
                delay: 0,
                html: !1,
                container: !1,
                viewport: {selector: "body", padding: 0}
            }, e.prototype.init = function (e, o, i) {
                if (this.enabled = !0, this.type = e, this.$element = t(o), this.options = this.getOptions(i), this.$viewport = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {
                    click: !1,
                    hover: !1,
                    focus: !1
                }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!");
                for (var r = this.options.trigger.split(" "), n = r.length; n--;) {
                    var s = r[n];
                    if ("click" == s) this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this)); else if ("manual" != s) {
                        var a = "hover" == s ? "mouseenter" : "focusin", l = "hover" == s ? "mouseleave" : "focusout";
                        this.$element.on(a + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this))
                    }
                }
                this.options.selector ? this._options = t.extend({}, this.options, {
                    trigger: "manual",
                    selector: ""
                }) : this.fixTitle()
            }, e.prototype.getDefaults = function () {
                return e.DEFAULTS
            }, e.prototype.getOptions = function (e) {
                return (e = t.extend({}, this.getDefaults(), this.$element.data(), e)).delay && "number" == typeof e.delay && (e.delay = {
                    show: e.delay,
                    hide: e.delay
                }), e
            }, e.prototype.getDelegateOptions = function () {
                var e = {}, o = this.getDefaults();
                return this._options && t.each(this._options, (function (t, i) {
                    o[t] != i && (e[t] = i)
                })), e
            }, e.prototype.enter = function (e) {
                var o = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
                if (o || (o = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, o)), e instanceof t.Event && (o.inState["focusin" == e.type ? "focus" : "hover"] = !0), o.tip().hasClass("in") || "in" == o.hoverState) o.hoverState = "in"; else {
                    if (clearTimeout(o.timeout), o.hoverState = "in", !o.options.delay || !o.options.delay.show) return o.show();
                    o.timeout = setTimeout((function () {
                        "in" == o.hoverState && o.show()
                    }), o.options.delay.show)
                }
            }, e.prototype.isInStateTrue = function () {
                for (var t in this.inState) if (this.inState[t]) return !0;
                return !1
            }, e.prototype.leave = function (e) {
                var o = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
                if (o || (o = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, o)), e instanceof t.Event && (o.inState["focusout" == e.type ? "focus" : "hover"] = !1), !o.isInStateTrue()) {
                    if (clearTimeout(o.timeout), o.hoverState = "out", !o.options.delay || !o.options.delay.hide) return o.hide();
                    o.timeout = setTimeout((function () {
                        "out" == o.hoverState && o.hide()
                    }), o.options.delay.hide)
                }
            }, e.prototype.show = function () {
                var o = t.Event("show.bs." + this.type);
                if (this.hasContent() && this.enabled) {
                    this.$element.trigger(o);
                    var i = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
                    if (o.isDefaultPrevented() || !i) return;
                    var r = this, n = this.tip(), s = this.getUID(this.type);
                    this.setContent(), n.attr("id", s), this.$element.attr("aria-describedby", s), this.options.animation && n.addClass("fade");
                    var a = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement,
                        l = /\s?auto?\s?/i, u = l.test(a);
                    u && (a = a.replace(l, "") || "top"), n.detach().css({
                        top: 0,
                        left: 0,
                        display: "block"
                    }).addClass(a).data("bs." + this.type, this), this.options.container ? n.appendTo(this.options.container) : n.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);
                    var h = this.getPosition(), f = n[0].offsetWidth, c = n[0].offsetHeight;
                    if (u) {
                        var d = a, p = this.getPosition(this.$viewport);
                        a = "bottom" == a && h.bottom + c > p.bottom ? "top" : "top" == a && h.top - c < p.top ? "bottom" : "right" == a && h.right + f > p.width ? "left" : "left" == a && h.left - f < p.left ? "right" : a, n.removeClass(d).addClass(a)
                    }
                    var m = this.getCalculatedOffset(a, h, f, c);
                    this.applyPlacement(m, a);
                    var g = function () {
                        var t = r.hoverState;
                        r.$element.trigger("shown.bs." + r.type), r.hoverState = null, "out" == t && r.leave(r)
                    };
                    t.support.transition && this.$tip.hasClass("fade") ? n.one("bsTransitionEnd", g).emulateTransitionEnd(e.TRANSITION_DURATION) : g()
                }
            }, e.prototype.applyPlacement = function (e, o) {
                var i = this.tip(), r = i[0].offsetWidth, n = i[0].offsetHeight, s = parseInt(i.css("margin-top"), 10),
                    a = parseInt(i.css("margin-left"), 10);
                isNaN(s) && (s = 0), isNaN(a) && (a = 0), e.top += s, e.left += a, t.offset.setOffset(i[0], t.extend({
                    using: function (t) {
                        i.css({top: Math.round(t.top), left: Math.round(t.left)})
                    }
                }, e), 0), i.addClass("in");
                var l = i[0].offsetWidth, u = i[0].offsetHeight;
                "top" == o && u != n && (e.top = e.top + n - u);
                var h = this.getViewportAdjustedDelta(o, e, l, u);
                h.left ? e.left += h.left : e.top += h.top;
                var f = /top|bottom/.test(o), c = f ? 2 * h.left - r + l : 2 * h.top - n + u,
                    d = f ? "offsetWidth" : "offsetHeight";
                i.offset(e), this.replaceArrow(c, i[0][d], f)
            }, e.prototype.replaceArrow = function (t, e, o) {
                this.arrow().css(o ? "left" : "top", 50 * (1 - t / e) + "%").css(o ? "top" : "left", "")
            }, e.prototype.setContent = function () {
                var t = this.tip(), e = this.getTitle();
                t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right")
            }, e.prototype.hide = function (o) {
                var i = this, r = t(this.$tip), n = t.Event("hide.bs." + this.type);

                function s() {
                    "in" != i.hoverState && r.detach(), i.$element.removeAttr("aria-describedby").trigger("hidden.bs." + i.type), o && o()
                }

                if (this.$element.trigger(n), !n.isDefaultPrevented()) return r.removeClass("in"), t.support.transition && r.hasClass("fade") ? r.one("bsTransitionEnd", s).emulateTransitionEnd(e.TRANSITION_DURATION) : s(), this.hoverState = null, this
            }, e.prototype.fixTitle = function () {
                var t = this.$element;
                (t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")
            }, e.prototype.hasContent = function () {
                return this.getTitle()
            }, e.prototype.getPosition = function (e) {
                var o = (e = e || this.$element)[0], i = "BODY" == o.tagName, r = o.getBoundingClientRect();
                null == r.width && (r = t.extend({}, r, {width: r.right - r.left, height: r.bottom - r.top}));
                var n = i ? {top: 0, left: 0} : e.offset(),
                    s = {scroll: i ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()},
                    a = i ? {width: t(window).width(), height: t(window).height()} : null;
                return t.extend({}, r, s, a, n)
            }, e.prototype.getCalculatedOffset = function (t, e, o, i) {
                return "bottom" == t ? {
                    top: e.top + e.height,
                    left: e.left + e.width / 2 - o / 2
                } : "top" == t ? {
                    top: e.top - i,
                    left: e.left + e.width / 2 - o / 2
                } : "left" == t ? {
                    top: e.top + e.height / 2 - i / 2,
                    left: e.left - o
                } : {top: e.top + e.height / 2 - i / 2, left: e.left + e.width}
            }, e.prototype.getViewportAdjustedDelta = function (t, e, o, i) {
                var r = {top: 0, left: 0};
                if (!this.$viewport) return r;
                var n = this.options.viewport && this.options.viewport.padding || 0,
                    s = this.getPosition(this.$viewport);
                if (/right|left/.test(t)) {
                    var a = e.top - n - s.scroll, l = e.top + n - s.scroll + i;
                    a < s.top ? r.top = s.top - a : l > s.top + s.height && (r.top = s.top + s.height - l)
                } else {
                    var u = e.left - n, h = e.left + n + o;
                    u < s.left ? r.left = s.left - u : h > s.right && (r.left = s.left + s.width - h)
                }
                return r
            }, e.prototype.getTitle = function () {
                var t = this.$element, e = this.options;
                return t.attr("data-original-title") || ("function" == typeof e.title ? e.title.call(t[0]) : e.title)
            }, e.prototype.getUID = function (t) {
                do {
                    t += ~~(1e6 * Math.random())
                } while (document.getElementById(t));
                return t
            }, e.prototype.tip = function () {
                if (!this.$tip && (this.$tip = t(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");
                return this.$tip
            }, e.prototype.arrow = function () {
                return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
            }, e.prototype.enable = function () {
                this.enabled = !0
            }, e.prototype.disable = function () {
                this.enabled = !1
            }, e.prototype.toggleEnabled = function () {
                this.enabled = !this.enabled
            }, e.prototype.toggle = function (e) {
                var o = this;
                e && ((o = t(e.currentTarget).data("bs." + this.type)) || (o = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, o))), e ? (o.inState.click = !o.inState.click, o.isInStateTrue() ? o.enter(o) : o.leave(o)) : o.tip().hasClass("in") ? o.leave(o) : o.enter(o)
            }, e.prototype.destroy = function () {
                var t = this;
                clearTimeout(this.timeout), this.hide((function () {
                    t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null
                }))
            };
            var o = t.fn.tooltip;
            t.fn.tooltip = function (o) {
                return this.each((function () {
                    var r = t(this), n = r.data("bs.tooltip"), s = "object" == i(o) && o;
                    !n && /destroy|hide/.test(o) || (n || r.data("bs.tooltip", n = new e(this, s)), "string" == typeof o && n[o]())
                }))
            }, t.fn.tooltip.Constructor = e, t.fn.tooltip.noConflict = function () {
                return t.fn.tooltip = o, this
            }
        }(jQuery)
    }, {}]
}, {}, [3]);